home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
impZeroRow.z
/
impZeroRow
Wrap
Text File
|
1998-10-30
|
7KB
|
133 lines
iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))
NNNNAAAAMMMMEEEE
impZeroRow, impInitRow, impCopyRow, impSAddRow, impVAddRow, impSSubRow,
impVSubRow, impSMulRow, impSDivRow, impClampRow - math operations on
image rows
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<iiiimmmmpppp....hhhh>>>>
vvvvooooiiiidddd iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppIIIInnnniiiittttRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppCCCCooooppppyyyyRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppSSSSAAAAddddddddRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppVVVVAAAAddddddddRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr1111,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr2222,,,,
iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppSSSSSSSSuuuubbbbRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppVVVVSSSSuuuubbbbRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr1111,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr2222,,,,
iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppSSSSMMMMuuuullllRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppSSSSDDDDiiiivvvvRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
vvvvooooiiiidddd iiiimmmmppppCCCCllllaaaammmmppppRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt lllloooovvvv,,,,
iiiinnnntttt hhhhiiiivvvv,,,, iiiinnnntttt nnnn))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
In the following descriptions, the parameter _n specifies the number of
elements in a array and not the number of bytes in the array. In
addition, functions that take a source array pointer and a destination
array pointer can specify the same array as both a source and
destination.
_i_m_p_Z_e_r_o_R_o_w initializes to zero the array pointed to by _d_p_t_r.
_i_m_p_I_n_i_t_R_o_w initializes the array _d_p_t_r to the value _v_a_l.
_i_m_p_C_o_p_y_R_o_w copies the array _s_p_t_r to the array _d_p_t_r.
_i_m_p_S_A_d_d_R_o_w adds the value _v_a_l to each element of the array _s_p_t_r storing
the result in the array _d_p_t_r.
_i_m_p_V_A_d_d_R_o_w adds the corresponding elements of _s_p_t_r_1 and _s_p_t_r_2 and stores
the result in the array _d_p_t_r.
PPPPaaaaggggeeee 1111
iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))
_i_m_p_S_S_u_b_R_o_w subtracts the value _v_a_l from each element of the array _s_p_t_r
and stores the result in the array _d_p_t_r.
_i_m_p_V_S_u_b_R_o_w subtracts the corresponding elements of _s_p_t_r_2 from _s_p_t_r_1 and
stores the result in the array _d_p_t_r.
_i_m_p_S_M_u_l_R_o_w multiplies each element of the array _s_p_t_r by _v_a_l and stores
the result in _d_p_t_r.
_i_m_p_S_D_i_v_R_o_w divides each element of the array _s_p_t_r by _v_a_l and stores the
result in _d_p_t_r.
_i_m_p_C_l_a_m_p_R_o_w clamps the values of the array _s_p_t_r between the values _l_o_v
and _h_i_v inclusive. The result is stored in the array _d_p_t_r.
NNNNOOOOTTTTEEEESSSS
1. It is the caller's responsibility to allocate all buffer storage.
2. Since the arrays referenced by these functions are _s_h_o_r_t integer
arrays, the caller should be aware of overflow/wraparound
conditions.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libimp(3)
PPPPaaaaggggeeee 2222